home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / hl / hl-1.000 / hl-1 / TkInterface / TkvBTree.h < prev   
Encoding:
C/C++ Source or Header  |  1995-04-21  |  2.0 KB  |  62 lines

  1. /*
  2.  * ------------------------------------------------------------------
  3.  * Home Libarian 1.0B by Deepwoods Software
  4.  * ------------------------------------------------------------------
  5.  * TkvBTree.h - Tcl/Tk Interface for the vBTree class (defs)
  6.  * Created by Robert Heller on Mon Apr 17 14:03:50 1995
  7.  * ------------------------------------------------------------------
  8.  * Modification History: 
  9.  * ------------------------------------------------------------------
  10.  * Contents:
  11.  * ------------------------------------------------------------------
  12.  *  
  13.  *     Home Librarian Database -- a program for maintaining a database
  14.  *                                for a home library
  15.  *     Copyright (C) 1991-1995  Robert Heller D/B/A Deepwoods Software
  16.  *             51 Locke Hill Road
  17.  *             Wendell, MA 01379-9728
  18.  * 
  19.  *     This program is free software; you can redistribute it and/or modify
  20.  *     it under the terms of the GNU General Public License as published by
  21.  *     the Free Software Foundation; either version 2 of the License, or
  22.  *     (at your option) any later version.
  23.  * 
  24.  *     This program is distributed in the hope that it will be useful,
  25.  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  *     GNU General Public License for more details.
  28.  * 
  29.  *     You should have received a copy of the GNU General Public License
  30.  *     along with this program; if not, write to the Free Software
  31.  *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  32.  * 
  33.  *  
  34.  */
  35. #ifndef _TKVBTREE_H_
  36. #define _TKVBTREE_H_
  37.  
  38. #include <String.h>
  39.  
  40. #include <tcl.h>
  41. #include <tclExtend.h>
  42.  
  43. #include <iostream.h>
  44. #include <strstream.h>
  45. #include <vBTree.h>
  46. #include <ctype.h>
  47.  
  48. class TkvBTree {
  49. public:
  50.     String FileName;
  51.     vBTree Tree;
  52.     OpenMode _mode;
  53.     TkvBTree(char *filename,OpenMode mode = ReadOnly,
  54.          int nfree = MaxNumFree / 10);
  55.     ~TkvBTree();
  56.     int TclFunction(Tcl_Interp *interp,int argc, char *argv[]);
  57.     static void_pt Handles;
  58. };
  59.  
  60. #endif // _TKVBTREE_H_
  61.  
  62.